"""
# -*- coding: utf-8 -*-
# @Software: PyCharm
# @File    : page_qq_space.py
# @desc    :QQ发布空间动态
# @Author  : 韩宇航
# @Time    : 2025/5/1
"""
import time

from base.base_page import BasePage
import page
from utils import UtilsDriver
from time import sleep

class PageQQSpace(BasePage):
    # def __init__(self):
    #     super().__init__(driver==UtilsDriver.get_app_driver())

    def __init__(self, driver):
        super().__init__(driver)
        self.time = None

    def page_click_qq(self):
        self.base_click(page.qq)

    def page_click_dt(self):
        self.base_click(page.dt)

    def page_click_add_space(self):
        self.base_click(page.add_space)

    def page_click_say_btn(self):
        self.base_click(page.say_btn)

    def page_send_say(self):
        self.base_input(page.say,"test")

    def page_click_fb(self):
        self.base_click(page.fb)


    #组合
    def qq_space_say(self):
        self.page_click_qq()
        self.page_click_dt()
        self.page_click_add_space()
        self.page_click_say_btn()
        time.sleep(5)
        self.page_send_say()
        self.page_click_fb()

if __name__=='__main__':
    driver=UtilsDriver.get_app_driver()
    a=PageQQSpace(driver)
    a.qq_space_say()